package com.zfast.forge.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 测试抽象
 *
 * @author zgn
 * @email
 * @date 2023-03-07 11:15:39
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tco")
@ApiModel(value = "Tco", description = "测试抽象")
public class Tco implements Serializable{
    private static final long serialVersionUID=1L;

    @Id
    @Column(name = "str_param")
    @ApiModelProperty("字串类")
    private String strParam;

    @Column(name = "date_param")
    @ApiModelProperty("日期类")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date dateParam;

    @Column(name = "bigDecimal_param")
    @ApiModelProperty("大数类")
    private BigDecimal bigdecimalParam;

    @Transient
    @ApiModelProperty("模糊查询字段")
    private String whe;
}
